	
	
	var buyProjectServiceTable = function(){
		return matchTable('#datatables','/buyService/getBuyServiceProjectPageData.do',buylistArr,function(obj){
			obj.serviceId = $("#serviceId").val();
			obj.memberId = $("#memberId").val();
			obj.investmentType = $("#investmentType").val();
			obj.buyStartDate = $("#buyStartDate").val();
			obj.buyEndDate = $("#buyEndDate").val();
		},true);
	} 
	
	

$(function(){
	
	
	buyProjectServiceTable();
	
	getSelectProjectService("#serviceId");
	
	getSelectInvestmentType("#investmentType");
	
	//查询
	$(".vdrallsearch").on('click',function(){
		buyProjectServiceTable().draw();
	});
	
	
});


function toDetailForm(id){
	
	layer.open({
		  type : 2,
		  title: '详情', 
		  skin: 'demo-class',
		  offset : '5%',
		  content: webroot + "/member/toDetailMemberBuyService.do?id="+id,
		  area: ['700px','80%']
		});
}

function toEditForm(id){
	
	layer.open({
		  type : 2,
		  title: '修改', 
		  skin: 'demo-class',
		  offset : '5%',
		  content: webroot + "/member/toEditMemberBuyService.do?id="+id,
		  area: ['700px','80%']
		});
}

